import pandas as pd

url='http://chart.yahoo.com/table.csv?s=IBM'

x=pd.read_csv(url,usecols=[0,6])

print(x[0:5])